package vip.xiaonuo.megvii;

import java.util.HashMap;
import java.util.Map;

public class GlobalDefine {

    public static final int _code_104001 = 104001; // 参数格式错误

    public static final int _code_104101 = 104101; // 登录冻结

    private static Map<Integer,String> map = new HashMap<>();

    static {
        map.put(_code_104001, "参数不合法，请联系开发者");
        map.put(_code_104101, "登录冻结，请稍后再试");
    }

    public static String getMessage(Integer code){
        if(map.containsKey(code)){
            return map.get(code);
        }
        return "未知异常,请联系开发者";
    }

}
